package org.example.task.model.dto.user;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
public class LoginDTO {
    /**
     * 用户名
     */
    @NotEmpty(message = "用户名不能为空")
    @Size(min = 3,max = 16,message = "长度为5-16")
    private String username;
    /**
     * 密码
     */
    @NotEmpty(message = "用户名不能为空")
    @Size(min = 3,max = 16,message = "长度为5-16")
    private String password;
}
